package com.dap.dubbo.rpc.filter;


import com.alibaba.dubbo.common.Constants;
import com.alibaba.dubbo.common.extension.Activate;
import com.alibaba.dubbo.rpc.*;
import com.dap.dubbo.rpc.utils.HystrixUtils;


/*@Activate(group = Constants.CONSUMER)*/
public class HystrixFilter implements Filter {
	public static final String DUBBO_APPLICATION_KEY = "Application:";
    public static final String STRATEGY="hystrix";
    
   
	@Override
	public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
		// TODO Auto-generated method stub
		HystrixUtils hystrixUtils=new HystrixUtils(invoker,invocation);
		return hystrixUtils.execute();
	    }
	
	}


